package cn.david.basic.mapper;

import cn.david.basic.query.BasicQuery;
import cn.david.org.domain.Employee;
import cn.david.org.query.EmployeeQuery;
import com.fasterxml.jackson.databind.introspect.TypeResolutionContext;

import java.util.List;

public interface BasicMapper<T> {
    //基础查询
    void save(T t);

    void remove(Long id);

    void update(T t);

    T loadById(Long id);

    List<T> loadAll();

    /**
     * 分页查询
     *
     */
    //查询总条数
    Long queryCount(BasicQuery query);
    //查询当前的页数
    List<T> queryData(BasicQuery query);
}
